{template "header.html"}
<!--首页导航-->
{template "danquan-index-daohang.html"}

<!--首页列表-->
<div class="container d-gao-70 d-yincang">
	
</div>
<div class="container d-gao-50 d-yincang-pc"></div>
<!--div class="d-container d-yincang-pc d-huading-0" style="background-color: {if $beijingyanse}{$beijingyanse}{else}#58b87e{/if}">
	<div class="d-row">
    	<div class="d-col-md-8">
			
			<div class="d-yuanjiao-bianhua-10-10 d-kuan d-beijing-baise d-bianhua-20 " style="background-color: {if $beijingyanse}{$beijingyanse}{else}#58b87e{/if}">
				
				<div class="row">
					
					<div class="col-md-12 col-xs-12 d-div-zou  d-buhuanhang d-yincang-pc d-huading-100"> 
						<a href="javascript:goBack();">
							<img class="d-yuanjiao-20 pull-left" src="{HOME_THEME_PATH}quan/img/fanhui.svg" height="20"/>
						</a>
						<a href="{CLIENT_URL}index.php?ye=0">
							<img class="pull-right" src="{HOME_THEME_PATH}quan/img/shouye3.png" height="20"/> 
						</a>
						{if $uid == $member.uid}
							<a class="d-yincang-pc d-you-10 d-quxian-0 pull-right" href="{dr_member_url($uriprefix.'quan/home/edit', ['id' => $id])}"> 
								<div class="d-yuanjiao-20 pull-right d-zitiyanse-bai d-zuoyou-10 d-wenzi-14"> 
								<i class="fa fa-cog"></i>
								</div>
							</a>
						{/if}
					</div>
				</div>
			</div>
			
		</div>
	</div>
</div-->
{php $erjibiao = '1_quan_fenlei';}
{php $youerji = \Phpcmf\Service::M()->db->table($erjibiao)->where('yijiid', $_GET['qid'])->get()->getRowArray();}
<div class="d-kuan d-shang-10 d-yincang"></div>
<div class="d-container ">
	<div class="d-row">
	    <div class="d-col-md-8">
			<!--圈子导航-->
			<div class="d-kuan d-beijing-baise d-bianhua-20 d-beijing-baise d-yuanjiao-bianhua-10-0 d-dingwei-50 d-yincang-pc">
				{if $daohang==2 || $daohang==3}
				<div class="row d-buhuanhang d-xia-20 d-yincang-pc">
					<div id="header">
						<div class="swiper-wrapper baise d-buhuanhang">
							
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['qid'] == '' && $_GET['t'] != 'tuijian' && $_GET['t'] != 'jinghua'}d-a-hei d-jiacu {else} d-a-hui {/if}">
									<a href="{CLIENT_URL}">首页</a>
								</div>
								{if $_GET['qid'] == '' && $_GET['t'] != 'tuijian' && $_GET['t'] != 'jinghua'}<p class="gaoliangl curs_ss"></p>{/if}
							</div>
							{php $erjibiao = '1_'.MOD_DIR.'_fenlei';}
							{table table=$erjibiao yijiid=0 cid=$id order=paixu_asc num=100 return=t1}
							<div class="swiper-slide baise" onclick="location.href='/index.php?s={MOD_DIR}&c=show&id={$id}&qid={$t1.id}'">
								<div class="d-neikuang-5-10 d-wenzi-16  {if $_GET['qid'] == $t1.id } d-jiacu d-a-hei {else} d-a-hui{/if}">
									<a href="/index.php?s={MOD_DIR}&c=show&id={$id}&qid={$t1.id}">{$t1.name}</a>
								</div>
								{if $_GET['qid'] == $t1.id }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
							
							{/table}
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['t'] == 'jinghua'}d-a-hei d-jiacu {else} d-a-hui {/if}">
									<a href="/index.php?s={MOD_DIR}&c=show&id={$id}&t=jinghua">精华</a>
								</div>
								{if $_GET['t'] == 'jinghua' }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
							{if $tjyhzu == '1'}
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['t'] == 'tuijian'}d-a-hei d-jiacu {else} d-a-hui {/if}">
									<a href="/index.php?s={MOD_DIR}&c=show&id={$id}&t=tuijian">{$dhmc}</a>
								</div>
								{if $_GET['t'] == 'tuijian' }<p class="gaoliangl curs_ss"></p>{/if}
							</div>
							{/if}
							{if $uid == $member.uid}
							<div class="swiper-slide baise">
								<div class="d-neikuang-5-10 d-wenzi-16 d-zitiyanse-hui">
									<a href="{dr_member_url('quan/son/index', ['cid'=>$id])}">
										<i class="fa fa-cog"></i>
									</a>
								</div>
							</div>
							{/if}
							
						</div>
						<div class="d-clear"></div>
					</div>
					<div class="d-clear"></div>
				</div>
				
				<div class="d-clear d-yincang-pc"></div>
				<div class="d-xian d-yincang-pc"></div>
				{/if}
				<!--二级-->
				{if $daohang==2 || $daohang==3}
					{if $youerji}
					<div class="row d-buhuanhang d-yincang-pc">
						<div id="header">
							<div class="swiper-wrapper baise d-buhuanhang">
								<div class="swiper-slide baise">
									<div class="d-neikuang-5-10 d-wenzi-16 {if $_GET['qid'] == '' && $_GET['t'] != 'tuijian' && $_GET['t'] != 'jinghua'}d-a-hei d-jiacu {else} d-a-hui {/if}">
										<a href="/index.php?s={MOD_DIR}&c=show&id={$id}&qid={$_GET['qid']}">全部</a>
									</div>
									{if $_GET['qid'] == '' && $_GET['t'] != 'tuijian' && $_GET['t'] != 'jinghua'}<p class="gaoliangl curs_ss"></p>{/if}
								</div>
								{php $erjibiao = '1_'.MOD_DIR.'_fenlei';}
								{table table=$erjibiao yijiid=1 yijiid=$_GET['qid'] cid=$index.id order=paixu_asc num=100 return=t2}
								<div class="swiper-slide baise" onclick="location.href='/index.php?s={MOD_DIR}&c=show&id={$id}&qid={$_GET['qid']}&erji={$t2.id}'">
									<div class="d-neikuang-5-10 d-wenzi-16  {if $_GET['erji'] == $t2.id } d-jiacu d-a-hei {else} d-a-hui{/if}">
										<a href="/index.php?s={MOD_DIR}&c=show&id={$id}&qid={$_GET['qid']}&erji={$t2.id}">{$t2.name}</a>
									</div>
								</div>
								{/table}
							</div>
							<div class="d-clear"></div>
						</div>
						<div class="d-clear"></div>
					</div>
					<div class="d-clear d-yincang-pc"></div>
					<div class="d-xian d-yincang-pc"></div>
					{/if}
				{/if}
				<script src="{HOME_THEME_PATH}web/css/swiper-bundle.min.js" type="text/javascript"></script>
				</div>
				
				<div class="d-kuan d-shang-10 d-yincang-pc"></div>
				<div class="d-col-md-8-10">
					<div class="">
						<div class="d-kuan d-beijing-baise d-bianhua-20 d-yuanjiao-10">
						{php $i=1;}
						{mform module=quan  form=son order=inputtime cid=$id zhiding=1 num=4 return=tt}
							<div class="d-neikuang-5-10 d-wenzi-16  d-chaochu">
								<span class="d-wenzi-12 d-biaoqian-30 d-yuanjiao-5">置顶</span>
								<span class="d-quxian-0 d-zuo-10 ">
									<a href="{dr_son_url($tt)}">
										{if $tt.title} 
										{$tt.title} 
										{else} 
										{dr_strcut(dr_clearhtml($tt.neirong), 30)}
										{/if}
									</a>
								</span>
							</div>
							{php $i++;}
						{/mform}
						</div>
					</div>
				</div>
			<div class="d-clear"></div>
			<!--签到-->
			{if dr_is_app('qiandao')}
				{php $qiandaoconfig = \Phpcmf\Service::L('cache')->get_file('app-qiandao');}
				{if $qiandaoconfig['xianshi'] == '2' || $qiandaoconfig['xianshi'] == '0' }
				<div class="d-yuanjiao-20 d-kuan">
					<!--签到-->
					{template "index-qiandao.html"}
				</div>
				{/if}
			{/if}
			
			{if $_GET['t'] == 'tuijian'}
			<!--推荐用户-->
				{if $tjyhzu == '1'}
				<div id="content_list">
					{template "show-tuijian.html"}
				</div>
				<div class="d-kuan d-gao-80"></div>
				{/if}
			{elseif $_GET['t'] == 'jinghua'}
				<div id="content_list">
					{template "show-list-jinghua.html"}
				</div>
				<div class="d-kuan d-gao-80"></div>
			{else}
				<!--圈子帖子-->
				<div class="d-col-md-8-10">
				{template "index-shenhe.html"}
				</div>
				<div id="content_list">
					{template "show-list-data.html"}
				</div>
				<div class="d-kuan d-gao-80"></div>
			{/if}
		</div>
		<div class="col-md-4 d-yincang">
			
			{template "danquan-daohang.html"}
			<!--版权-->
			{template "index-banquan.html"}
		</div>
	</div>
</div>

{if dr_is_app('qiandao')}
<div class="d-qiandao-tanchu" style="display: none" onclick="d_m_qiandao2()">
	<div class="d-qiandao-kuan ">
		<div class="d-qiandao-beijing">
			<div class="d-qiandao-gao"></div>
			<div class="d-qiandao-zhi" id="d-qiandao-zhi">0</div>
			<div class="d-qiandao-chenggong"> 获得<span class="d-zitiyanse-hongse" id="d-qiandao-zhi2"></span> <span id="d-qiandao-jingyan"></span>奖励 </div>
			<div class="d-qiandao-chenggong"> 连续签到 <span class="d-zitiyanse-hongse" id="d-qiandao-tian" ></span>天</div>
		</div>
	</div>
</div>
{/if}
<!--分享图-->
{template "show-index-fenxiangtu.html"}
<!--尾部导航-->
{template "danquan-index-weibudaohang.html"}
{template "fanhui.html"}
<div class="d-fenxiang d-xiala-fenxiang" style="display: none;">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<!--分享图123-->
				<div class="">
						<nav aria-label="">
						<!--PC端-->
						  <ul class="pager d-yincang">
							<li>
								<a  class="d-wenzi-14 my_poster_button d-zitiyanse-hui" data-id="{$id}" data-mid="{MOD_DIR}">
									<img src="{HOME_THEME_PATH}web/img/haibao.png" width="40" height="40" class="">
									<div>海报</div>
								</a>
							</li>
							
						  </ul>
						  <!--移动端-->
						  <ul class="pager d-yincang-pc">
							<li>
								<a  class="d-wenzi-14 my_poster_button d-zitiyanse-hui" data-id="{$id}" data-mid="{MOD_DIR}">
									<img src="{HOME_THEME_PATH}web/img/haibao.png" width="40" height="40" class="">
									<div>海报</div>
								</a>
							</li>
							
							<li>
								<a onclick="javascript:d_weixin();" class="d-zuo-10 d-wenzi-14  d-zitiyanse-hui" >
									<img src="{HOME_THEME_PATH}web/img/weixin.png" width="40" height="40" class="">
									<div>微信</div>
								</a>
							</li>
						  </ul>
						</nav>
				</div>
				<!--分享图-->
				<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
				<div class="d-kuan d-neikuang-10" onclick="javascript:d_fenxiang();"><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="d-weixin d-xiala-weixin" style="display: none;" onclick="javascript:d_weixin();">
	<div class="d-container">
		<div class="d-row">
			<div class="d-col-md-8-juzhong d-quxian-0 d-a-baise">
				<div class="d-wenzi-you"><img src="{HOME_THEME_PATH}web/img/jiantou.png" class="d-you-10"/></div>
				<div class="d-wenzi-juzhong d-zitiyanse-bai">点击微信右上角的三个点按钮，即可分享</div>
				<div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
				<div class="d-kuan d-neikuang-10" ><i class="bi bi-x-circle-fill d-zitiyanse-bai d-wenzi-18"></i></div>
				</div>
				
			</div>
		</div>
	</div>
</div>
<style>
.d-xiala-fenxiang {
	z-index: 1000;
	position: fixed;
	bottom: 0px;
	width: 100%;
	height: 40%;
	overflow: auto;
	background: #ffffff;
	right: 0;
	left: 0;
	box-shadow: 0 0 20px #d6d6d6;
	background-color: rgba(255, 255, 255, 1.0);
}
.d-dingwei-50 {
	    /* position: sticky; */
	    position: sticky;
	    top: 50px;
	    z-index: 4;
	    width: 100%;
	    /*margin-left: -110px;*/
	}
.d-xiala-weixin {
	    z-index: 999999;
	    position: fixed;
	    top: 0px;
	    width: 100%;
	    height: 60%;
	    overflow: auto;
	    background: #ffffff;
	    right: 0;
	    left: 0;
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(54, 54, 54, 0.9);
	}
</style>
<!-- Initialize Swiper -->
<script type="text/javascript">
	function d_fenxiang() {
		if ($('.d-fenxiang').is(':hidden')) {
			$('.d-fenxiang').show();
		} else {
			$('.d-fenxiang').hide();
		}
	}
	function d_weixin() {
		if ($('.d-weixin').is(':hidden')) {
			$('.d-weixin').show();
		} else {
			$('.d-weixin').hide();
		}
	}
	var mySwiper1 = new Swiper('#header',{
		slideToClickedSlide: true,
		//centeredSlides : true,
		slidesPerView: 'auto',
		//initialSlide : 0,
		{if !$_GET['qid']}
		   initialSlide : 0,
		{elseif $_GET['qid'] < 3}
			initialSlide : 0,
		{elseif $_GET['qid'] > 3}
			initialSlide : 3,
		{elseif $_GET['qid'] > 6}
			initialSlide : 11,
		{/if}
	})

</script>
{template "css-js.html"}
{template "footer.html"}